package de.kardass.jannobatch.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import de.kardass.jannobatch.errorhandler.ErrorHandler;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Inherited
public @interface BatchException {

	Class<? extends Throwable> exception();
	
	Class<? extends ErrorHandler<?, ? extends Throwable>> handler();
	
}
